<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SolicitanteCreateDlg" widgetVar="SolicitanteCreateDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.CreateSolicitanteTitle}">
            <h:form id="SolicitanteCreateForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{solicitanteController.selected != null}">
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_id}" for="id" />
                        <p:inputText id="id" value="#{solicitanteController.selected.id}" title="#{bundle.CreateSolicitanteTitle_id}" />
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_apellido}" for="apellido" />
                        <p:inputText id="apellido" value="#{solicitanteController.selected.apellido}" title="#{bundle.CreateSolicitanteTitle_apellido}" />
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{solicitanteController.selected.nombre}" title="#{bundle.CreateSolicitanteTitle_nombre}" />
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_dni}" for="dni" />
                        <p:inputText id="dni" value="#{solicitanteController.selected.dni}" title="#{bundle.CreateSolicitanteTitle_dni}" />
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_telefono}" for="telefono" />
                        <p:inputText id="telefono" value="#{solicitanteController.selected.telefono}" title="#{bundle.CreateSolicitanteTitle_telefono}" />
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{solicitanteController.selected.direccion}" title="#{bundle.CreateSolicitanteTitle_direccion}" />
                        <p:outputLabel value="#{bundle.CreateSolicitanteLabel_anios_residencia}" for="anios_residencia" />
                        <p:inputText id="anios_residencia" value="#{solicitanteController.selected.anios_residencia}" title="#{bundle.CreateSolicitanteTitle_anios_residencia}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{solicitanteController.create}" value="#{bundle.Save}" update="display,:SolicitanteListForm:datalist,:growl" oncomplete="handleSubmit(args,'SolicitanteCreateDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="SolicitanteCreateDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
